import com.demo.service.UserService;
import com.bubbo.rpc.client.BubboProxy;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * Created by waasdasd on 2017/4/7.
 */
public class test {


    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        BubboProxy bubboProxy = context.getBean(BubboProxy.class);
        UserService userService = bubboProxy.create(UserService.class);
        System.out.print(userService.getUserInfo());
    }
}
